package com.yf.tz.dao;

import com.yf.tz.entity.AccountEntity;
import com.yf.tz.entity.AccountRecordEntity;
import com.yf.tz.vo.AccountRecordVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 账户记录Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Jul 21 11:51:35 CST 2020
 */
@Mapper
public interface AccountRecordDao extends BaseDao<AccountRecordEntity> {

    List<AccountRecordVo> findVo(AccountRecordVo vo);

    AccountRecordVo getVo(Long id);


    List<AccountRecordEntity> findByOrderNo(String orderNo);

    AccountRecordEntity findByBusAndOrderNo(@Param("bus") Integer bus, @Param("orderNo") String orderNo);

    List<AccountRecordVo> findByUserIdAndType(@Param("userId") Long userId, @Param("type") Integer type, @Param("date") String date);
}
